<div class="deal">
    <div class="deal_content_top"></div>
    <div class="deal_content">
        <h3>Chi tiết hóa đơn</h3>
        <table width="100%" class="table-style" cellpadding="5px" cellspacing="0">
            <tbody>
                <tr class="table-title">
                    <td style="text-align:left;">Deal</td>
                    <td style="text-align:left;">Giá</td>
                    <td style="text-align:left;">Số lượng</td>
                    <td style="text-align:left;">Thanh toán</td>
                </tr>
                <?php foreach ($this->items as $item): ?>
                    <tr>
                        <td width="280px"><?php echo $item->deal_title ?></td>
                        <td width="80px"><?php echo $item->price ?> đ</td>
                        <td width="80px"><?php echo $item->quantity ?></td>
                        <td width="80px"><?php echo $item->quantity * $item->price ?> đ</td>
                    </tr>
                <?php endforeach ?>
                    <tr>
                        <td colspan="3"><h4>Tổng cộng:</h4></td>
                        <td><h4><?php echo $this->subtotal ?> đ</h4></td>
                    </tr>
                </tbody>
            </table>
            <br />
            <h3>Địa chỉ nhận hàng:</h3>

            <table width="100%" class="table-style" cellpadding="5px" cellspacing="0">
                <tr class="odd" style="text-align:left;">
                    <td width="200px">Họ tên:</td>
                    <td><?php echo $this->shipping->name ?></td>
                </tr>
                <tr>
                    <td>Email:</td>
                    <td><?php echo $this->shipping->email ?></td>
                </tr>
                <tr class="odd" style="text-align:left;">
                    <td>Số điện thoại:</td>
                    <td><?php echo $this->shipping->phone ?></td>
                </tr>
                <tr>
                    <td>Địa chỉ:</td>
                    <td><?php echo $this->shipping->shipping_address ?></td>
            </tr>
        </table>
        <br />
        <h3>Phương thức thanh toán: </h3>
        <p><?php echo $this->order_type->name ?></p>

        <h3>Trạng thái đơn hàng: </h3>
        <?php if($this->order->status == 1): ?>
        <p>Chờ thanh toán</p>
        <?php endif ?>
        <?php if($this->order->status == 2): ?>
        <p>Đang xử lý</p>
        <?php endif ?>
        <?php if($this->order->status == 3): ?>
        <p>Hoàn tất</p>
        <?php endif ?>
        <?php if($this->order->status == 4): ?>
        <p>Hủy</p>
        <?php endif ?>
        <div class="deal_content_bottom"></div>
    </div>
</div>